package com.wry.sharding.dao;

import lombok.Data;

/**
 * <h1>  <h1>
 *
 * @author wry
 * @since 2025/1/8 17:23
 */
@Data
public class OrderId implements Comparable<OrderId> {
    private Long id;

    @Override
    public int compareTo(OrderId o) {
        return Long.compare(this.id, o.id);  // 比较 id
    }
}